package Stock;

import java.util.Date;

public class Transaction {
	private float  m_Open,
				   m_Close,
				   m_Low,
				   m_High,
				   m_AdjustmentClose;
	private Date m_StockDate;
	
	public Transaction(float open,float high,float low, float close , float adjustmentClose, Date stockDate){
		
		m_Open= open;
		m_High = high;
		m_Low = low;
		m_Close =close;
		m_AdjustmentClose = adjustmentClose;
		m_StockDate = stockDate;
	}
	
	public void SetValues(float open,float high,float low, float close , float adjustmentClose)
	{
		m_Open= open;
		m_High = high;
		m_Low = low;
		m_Close =close;
		m_AdjustmentClose = adjustmentClose;
	}
	
	public float getOpen(){
		return m_Open;
	}
	public float getClose(){
		return m_Close;
	}
	public float getAdjustmentClose(){
		return m_AdjustmentClose;
	}
	public float getLow(){
		return m_Low;
	}
	public float getHigh(){
		return m_High;
	}
	public Date getStockDate(){
		return m_StockDate;
	}

	public void SetValues(Transaction transaction) {
		m_AdjustmentClose = transaction.getAdjustmentClose();
		m_Close = transaction.getClose();
		m_High = transaction.getHigh();
		m_Low = transaction.getLow();
		m_Open= transaction.getOpen();
		m_StockDate = transaction.getStockDate();
	}
	
 
	public void setDate(Date stockDate) {
		m_StockDate = stockDate;
		
	}
	
	
	
}
